

package top.continew.admin.question.mapper;

import org.apache.ibatis.annotations.Param;
import top.continew.admin.question.manger.service.model.BatchQuery;
import top.continew.admin.question.manger.service.model.QueryTestSpotCheck;
import top.continew.admin.question.manger.service.model.SamplePoolQuery;
import top.continew.admin.question.model.SamplePool;
import top.continew.admin.question.model.question.Question;
import top.continew.admin.question.manger.service.model.BatchList;
import top.continew.admin.question.manger.service.model.SamplePoolVo;
import top.continew.admin.question.manger.service.model.SpotCheckQuestion;
import top.continew.admin.question.manger.service.model.TestSpotCheckVO;
import top.continew.starter.data.mp.base.BaseMapper;

import java.util.List;

public interface SamplePoolMapper extends BaseMapper<SamplePool> {
    List<SamplePoolVo> getSamplePool(@Param("samplePoolQuery") SamplePoolQuery samplePoolQuery,
                                     @Param("createBy") Long createBy);

    SamplePoolVo queryUp(@Param("batchNo") String batchNo, @Param("id") Long id);

    SamplePoolVo queryDown(@Param("batchNo") String batchNo, @Param("id") Long id);

    List<BatchList> queryBatch(BatchQuery batchQuery);

    Long getNotCheckCount(String batchNo);

    void changeSample(@Param("batchNo") String batchNo, @Param("status") String status);

    List<Question> getRejectPeople(String batchNo);

    Integer checkQuestionReviewPass(String batchNo);

    List<SpotCheckQuestion> getSamplePoolByBatchNo(String batchNo);

    void rejectTest(Long id);

    void passTest(Long id);

    void revokeTest(Long id);

    void revokeQuestion(String batchNo);

    List<TestSpotCheckVO> getTestSpotCheck(QueryTestSpotCheck queryTestSpotCheck);

}
